#include <bits/stdc++.h>
using namespace std;
int T,p[1010000]={};
double begi[1010000]={},en[1010000]={};
int main(){
    freopen("color.in","r",stdin);
    freopen("color.out","w",stdout);
    cin>>T;
    while(T--){
        int n;
        cin>>n;
        for(int i=1;i<=n;i++){
            int a;
            cin>>a;
        }
        cout<<0;
    }
    return 0;
}
